package com.tsj.spzx.service;

import com.tsj.spzx.model.entity.product.Category;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CategoryService {
    /**
     * 根据父节点的id查询下级节点
     * @param parentId
     * @return
     */
    List<Category> findByParentId(Long parentId);

    /**
     * 导出数据
     * @param httpServletResponse
     */
    void exportData(HttpServletResponse httpServletResponse);

    /**
     * 导入数据
     * @param file
     */
    void importData(MultipartFile file);
}
